import axios from "axios";

//创建一个axios对象
const neo4jRequest = axios.create({
    baseURL: 'http://121.43.111.134:8089/',
    timeout: 150000
})

neo4jRequest.interceptors.response.use(
    responese => {
        let res = responese.data;
        if (typeof res === 'string') {
            res = res ? JSON.parse(res) : res
        }
        return res
    }, error => {
        console.log('err' + error)
        return Promise.reject(error)
    }
)

export default neo4jRequest